<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page isELIgnored="false" %> 
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ page import="java.util.*,com.temp.model.*" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="css/lib.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="573" height="121" border="0" align="center">
  <tr>
    <td colspan="2"><img src="img/xian2.jpg" width="900"  /></td>
  </tr>
  <tr>
    <td width="168" valign="top" bgcolor="#FFFFCC"><ul>
      <li><a href="#">楼盘信息发布</a></li>
      <li><a href="#">楼盘信息审核</a></li>
      <li><a href="#">信息显示</a></li>
      <li><a href="#">信息发布</a></li>
      <li><a href="#">会员注册</a></li>
      <li><a href="#">会员审核</a></li>
     <li><a href="addLease.html">房产出租</a></li>
      <li><a href="leaseManage.html">房产出租信息管理</a></li>
      <li><a href="#">在线咨询</a></li>
      <li><a href="#">问题解答</a></li>
    </ul>
    <p>&nbsp;</p></td>
    <td width="728" valign="top"><p>&nbsp;</p>
<p>&nbsp;</p><form id="form1" name="form1" method="post" action="FIndAllServlet">
  <p class="title">房产出租信息管理</p>
  <table width="200" border="1" class="tableEdit">
    <tbody>
      <tr>
        <th width="16%" scope="col">信息编号</th>
        <th width="15%" scope="col">姓名</th>
        <th width="19%" scope="col">联系电话</th>
        <th width="26%" scope="col">描述</th>
        <th width="12%" scope="col">价格</th>
        <th width="12%" scope="col">操作</th>
      </tr>
    <%
    List<UserBean> list=(List<UserBean>)request.getAttribute("userBen");
    for(UserBean userBean :list){
    
    %>
      <tr>
        <td ><%=userBean.getId() %></td>
        <td><%=userBean.getName() %></td>
        <td><%=userBean.getPhone() %></td>
        <td><%=userBean.getDescription() %></td>
        <td><%=userBean.getPrice() %></td>
        <td><a href="DeleteLeaseServlet?id=<%=userBean.getId()%>">删除</a> </td>
      </tr>
    <% } %>
    
    </tbody>
  </table>
  <p> </p>
  <p>&nbsp;</p>
<p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </form>
    </td>
  </tr>
</table>
</body>
</html>